<template>
    <div>
        <div class="nav-box">
            <el-menu :default-active="actionIndex" background-color="#F2F4F6" class="el-menu-demo" mode="horizontal"
                @select="handleSelect">
                <el-menu-item index="1">已接入平台</el-menu-item>
                <el-menu-item index="2">优惠卷设置</el-menu-item>
                <el-menu-item index="3">流水统计</el-menu-item>
            </el-menu>
        </div>
        <plateform-connected-view class="plateform-connected-view" v-if="actionIndex == '1'">

        </plateform-connected-view>
    </div>
</template>
<script>
import PlateformConnectedView from "@/components/mine/interest/connector/PlatformConnectedView.vue";
export default {
    data() {
        return {
            actionIndex: "1"
        }
    },
    components: {
        PlateformConnectedView
    },
    methods: {
        handleSelect(keyPath) {
            this.actionIndex = keyPath;
        }
    }
}
</script>
<style scoped>
.nav-box {
    position: relative;
    display: block;
    width: 100%;

    float: left;
    margin: 0;
    padding: 0;
}

.plateform-connected-view {
    height: 100vh;
    overflow: scroll;
}
</style>